package com.microbroadcast.webservice;

import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;

import com.microbroadcast.resource.manager.ResourceManager;
import com.microbroadcast.webservice.Service;


public class WebService {

	public static void main(String[] args) {
		JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean();
		bean.setResourceClasses(ResourceManager.getInstance().getResourceList());
		bean.setServiceBean(new Service());
		bean.setAddress("http://localhost:8080/");
		bean.create();
		System.out.println("start");
	}
}